package com.nuedu.corejava.ch7.homework2;

public class TestStudent {
	public static void main(String[] args) {
		Student[] students = new Student[5];
		//把一个子类赋值给一个父类，向上溯型
		students[0] = new EnglishStudent(1001, "Jack", "男", 3, 88, 90, 100);
		students[1] = new ComputerStudent(1002, "Bill",  "男", 60, 80, 80, 67, 90);
		students[2] = new LiteratureStudent(1003, "冰心", "女", 120, 90, 99, 100,98);
		students[3] = new EnglishStudent(1005, "Tom", "男", 5, 88, 90, 100);
		students[4] = new ComputerStudent(1006, "Bruce", "男", 35, 88, 90, 89,99);
		for (Student student : students) {
			student.showInfo();
		}
	}
	

}
